﻿using JQData.Core.TushareSDK;
using System.Threading.Tasks;

namespace JQData.Test
{
    public class UnitTest1
    {
        [Fact]
        public async Task Test1()
        {
            var core = new TushareCore("d6bd5319b55741d52682b9586bca1bccd72e9649840c41760fe5eea3");
            var api = new OtherApi(core);

            var list = await api.GetHmListAsync();

        }

        [Fact]
        public async Task Test2()
        {
            var core = new TushareCore("d6bd5319b55741d52682b9586bca1bccd72e9649840c41760fe5eea3");
            var api = new OtherApi(core);

            var list = await api.GetHmDetailAsync(null);

        }

        [Fact]
        public async Task GetStockBasicAsync()
        {
            var core = new TushareCore("d6bd5319b55741d52682b9586bca1bccd72e9649840c41760fe5eea3");
            var api = new StockApi(core);

            var list = await api.GetStockBasicAsync();
        }


        [Fact]
        public async Task GetDailyAsync()
        {
            var core = new TushareCore("d6bd5319b55741d52682b9586bca1bccd72e9649840c41760fe5eea3");
            var api = new StockApi(core);

            var list = await api.GetDailyAsync("000001.SZ", new DateOnly(2025, 6, 19));


        }

    }
}
